package com.example.kingdee.kingdeeBridge.dto;

import com.example.kingdee.sqlTool.sqltoolEnum.FormIdEnum;

import java.util.List;

public class PushDto {
    public PushDto() {
        this.isEnableDefaultRule = true;
        this.isDraftWhenSaveFail = false;
    }

    //源单单据内码
    private FormIdEnum srcFormId;
    //目标单据FormId，字符串类型，（启用默认转换规则时，则必录）
    private FormIdEnum targetFormId;
    //目标单据FormId，字符串类型，（启用默认转换规则时，则必录）
    private Object targetOrgId;

    //单据内码集合，字符串类型，格式："Id1,Id2,..."（使用内码时必录）
    private List<Long> ids;
    //单据编码集合，数组类型，格式：[No1,No2,...]（使用编码时必录）
    private List<String> numbers;
    //分录内码集合，逗号分隔（分录下推时必录） 注（按分录下推时，单据内码和编码不需要填,否则按整单下推）
    private String entryIds;
    //转换规则内码，字符串类型（未启用默认转换规则时，则必录）
    private String ruleId;
    //目标单据类型内码，字符串类型（非必录）
    private String targetBillTypeId;
    //是否启用默认转换规则，布尔类型，默认false（非必录）
    private boolean isEnableDefaultRule;
    //保存失败时是否暂存，布尔类型，默认false（非必录）  注（暂存的单据是没有编码的）
    private boolean isDraftWhenSaveFail;

    public FormIdEnum getSrcFormId() {
        return srcFormId;
    }

    public void setSrcFormId(FormIdEnum srcFormId) {
        this.srcFormId = srcFormId;
    }

    public FormIdEnum getTargetFormId() {
        return targetFormId;
    }

    public void setTargetFormId(FormIdEnum targetFormId) {
        this.targetFormId = targetFormId;
    }

    public List<Long> getIds() {
        return ids;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }

    public List<String> getNumbers() {
        return numbers;
    }

    public void setNumbers(List<String> numbers) {
        this.numbers = numbers;
    }

    public String getEntryIds() {
        return entryIds;
    }

    public void setEntryIds(String entryIds) {
        this.entryIds = entryIds;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public boolean isEnableDefaultRule() {
        return isEnableDefaultRule;
    }

    public void setEnableDefaultRule(boolean enableDefaultRule) {
        isEnableDefaultRule = enableDefaultRule;
    }

    public boolean isDraftWhenSaveFail() {
        return isDraftWhenSaveFail;
    }

    public void setDraftWhenSaveFail(boolean draftWhenSaveFail) {
        isDraftWhenSaveFail = draftWhenSaveFail;
    }

    public String getTargetBillTypeId() {
        return targetBillTypeId;
    }

    public void setTargetBillTypeId(String targetBillTypeId) {
        this.targetBillTypeId = targetBillTypeId;
    }

    public Object getTargetOrgId() {
        return targetOrgId;
    }

    public void setTargetOrgId(Object targetOrgId) {
        this.targetOrgId = targetOrgId;
    }
}
